<script>
	$(function() {
		$(".article_footer a.icon_button.modify").click(function() {	
			href = $(this).attr("href");
			title = '{result->ba_id} 게시판 수정';
			
			
			loadDialogForm(href, null, title, 800, 710, null, 'modify');
			
			return false;
		});
		
		$(".article_footer a.icon_button.delete").click(function() {
			if(confirm('{result->ba_id} 게시판을 삭제하시겠습니까? \n삭제시 해당 게시판의 자료는 모두 삭제됩니다.')) {
				$.ajax({
					 url : $(this).attr("href")
					,success:function(data){
						if(data.code == mesg.success) {
							sagapo.section_refresh(data.return_url, true);
						} else {
							alert(data.msg);
						}
						
						return false;
					}
				});
				
			} 
			
			return false;
		});
	});
</script>

<div class="article_header">
	<h4>{result->ba_id} 게시판 정보</h4>
	<div class="close">
		<button type="button">닫기</button>
	</div>
</div>

<div class="article">
	<table class="table">
		<caption>
			{result->ba_id} 게시판 정보
		</caption>
		<colgroup>
			<col class="add" />
			<col />
		</colgroup>
		<tbody>
			<tr>
				<th scope="row" class="txt_right br">게시판 아이디</th>
				<td>{result->ba_id}</td>
			</tr>
			<tr class="odd">
				<th scope="row" class="txt_right br">게시판 이름</th>
				<td>{result->ba_name}</td>
			</tr>
			<tr>
				<th scope="row" class="txt_right br">카테고리</th>
				<td>
					<span class="{result->category->class}">
						{result->category->text}
					</span>
				</td>
			</tr>
			<tr class="odd">
				<th scope="row" class="txt_right br">하단리스트</th>
				<td>
					<span class="{result->footlist->class}">
						{result->footlist->text}
					</span>
				</td>
			</tr>
			<tr>
				<th scope="row" class="txt_right br">새글 아이콘</th>
				<td>
					{result->ba_newicontime} 시간
				</td>
			</tr>
			<tr class="odd">
				<th scope="row" class="txt_right br">첨부파일</th>
				<td>
					<span class="{result->attach->class}">
						{result->attach->text}
					</span>
				</td>
			</tr>
			<tr>
				<th scope="row" class="txt_right br">리스트 갯수</th>
				<td>{result->ba_listingnum}</td>
			</tr>
			<tr class="odd">
				<th scope="row" class="txt_right br">페이징 갯수</th>
				<td>{result->ba_pagingnum}</td>
			</tr>
			<tr>
				<th scope="row" class="txt_right br">썸네일 가로</th>
				<td>	
					{result->ba_thumwidth} pixel
				</td>
			</tr>
			<tr class="odd">
				<th scope="row" class="txt_right br">페이징 세로</th>
				<td>
					{result->ba_thumheight} pixel
				</td>
			</tr>
			<tr>
				<th scope="row" class="txt_right br">생성일</th>
				<td>{result->date}</td>
			</tr>
		</tbody>
	</table>
</div>

<div class="article_footer">
	<div class="btn_left">
		<!-- button type="button" class="refresh">새로고침</button -->
		<a href="{action}/view/{result->ba_seq}" class="icon_button refresh" title="새로고침">새로고침</a>
	</div>
	<!-- 
	<div class="next_prev">
		<a href="#" class="button prev_article">이전글</a>
		<a href="#" class="button next_article">다음글</a>
	</div>
	-->
	
	<div class="btn_right">
		<a href="{action}/view/{result->ba_seq}" class="icon_button modify" title="수정">수정</a>
		<a href="{action}/doDelete/{result->ba_id}" class="icon_button delete" title="삭제">삭제</a>
	</div>
	 
</div>